<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>方圆小程序后台管理</title>
  <link rel="stylesheet" href="layui/css/layui.css">
  <link rel="stylesheet" href="css/public.css">
  <link rel="stylesheet" href="css/all.css">
</head>
<body class="layui-layout-body">
  <div class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo">方圆小程序</div>
      <!-- 头部区域（可配合layui已有的水平导航） -->
      <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item"><a href="index.html">首页</a></li>
        <li class="layui-nav-item"><a href="shopdata.html">运营</a></li>
        <li class="layui-nav-item"><a href="setting.html">设置</a></li>
      </ul>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">手边卡券</li>
        <li class="layui-nav-item">
          <a href="">
            你好，170600001
          </a>
          <dl class="layui-nav-child">
            <dd><a href="">个人中心</a></dd>
            <dd><a href="">退出</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="">帮助</a></li>
      </ul>
    </div>

    <div class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree">
          <li class="layui-nav-item layui-nav-itemed">
            <a href="javascript:;"><img src="images/shop_normal.png" alt="" class="menuicon">商户管理</a>
            <dl class="layui-nav-child">
              <dd><a href="shopdata.html">商户数据</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item">
            <a href="javascript:;"><img src="images/mendian_normal.png" alt="" class="menuicon">门店展示管理</a>
            <dl class="layui-nav-child">
              <dd><a href="paidstore.html">付费门店管理</a></dd>
              <dd><a href="freestore.html">免费入驻管理</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item">
            <a href="javascript:;"><img src="images/guanggao__normal.png" alt="" class="menuicon">广告位设置</a>
            <dl class="layui-nav-child">
              <dd><a href="topbanner.html">顶部Banner设置</a></dd>
              <dd><a href="recommend.html">推荐店铺设置</a></dd>
              <dd><a href="anglemark.html">角标店铺设置</a></dd>
            </dl>
          </li>
        </ul>
      </div>
    </div>

    <div class="layui-body j-layui-body">
      <!-- 内容主体区域 -->
      <div class="j-contaner">
        <span class="layui-breadcrumb">
          <a href="shopdata.html">运营</a>
          <a href="shopdata.html">商户管理</a>
          <a><cite>商户数据</cite></a>
        </span>
      </div>

      <form class="layui-form j-contaner">
        <div class="layui-form-item">
          <div class="layui-inline">
            <label class="layui-form-label layui-inline">加入时间:</label>
            <div class="layui-input-inline">
              <input type="text" class="layui-input" id="startTime" placeholder="起始时间">
            </div>
            <label class="layui-form-label j-lable">到</label>
            <div class="layui-input-inline">
              <input type="text" class="layui-input" id="endTime" placeholder="截止时间">
            </div>
          </div>
          <div class="layui-inline">
            <div class="layui-input-inline">
              <input type="text" class="layui-input j-input-1" id="shopName" placeholder="请输入商户名称">
              <i class="layui-icon j-icon">&#xe615;</i>
            </div>
          </div>
        </div>

        <div class="layui-form-item">
          <label class="layui-form-label layui-inline">选择行业:</label>
          <div class=" layui-inline">
            <select id="firstIndustry" name="firstIndustry" lay-filter="firstIndustry">
              <option value="">选择一级行业</option>
            </select>
          </div>
          <div class="layui-inline">
            <select id="secondIndustry" name="secondIndustry" lay-filter="secondIndustry">
              <option value="">选择二级行业</option>
            </select>
          </div>

          <label class="layui-inline">地址:</label>
          <div class=" layui-inline">
            <select id="selProvince" name="province" lay-filter="province">
              <option value="">选择省</option>
            </select>
          </div>
          <div class="layui-inline">
            <select id="selCity" name="city" lay-filter="city">
              <option value="">选择市</option>
            </select>
          </div>
          <div class="layui-inline">
            <select id="selArea" name="area" lay-filter="area">
              <option value="">选择区</option>
            </select>
          </div>

          <div class="layui-inline">
            <div class="layui-input-inline">
              <a class="layui-btn" id="chaxun" onclick="chaxun()">查询</a>
            </div>
          </div>
        </div>

      </form>

      <table id="tab1"></table>

    </div>
    <script src="layui/layui.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/select.js"></script>
    <script>

    //JavaScript代码区域
    layui.use(['element','laydate','form','upload','table'], function(){
      var element = layui.element;

      var laydate = layui.laydate;

      laydate.render({
        elem: '#startTime'
        ,showBottom: false
      });
      laydate.render({
        elem: '#endTime'
        ,showBottom: false
      });

      var form = layui.form;

      var table = layui.table;
      table.render({
        elem: '#tab1'
        ,url:''//数据接口
        ,cellMinWidth: 150
        ,cols: [[
        {field:'id', title: '序号', align: 'center'}
        ,{field:'name', title: '商户名称' ,align: 'center'}
        ,{field:'add', title: '商户地址' ,align: 'center',width:'300'}
        ,{field:'hangye', title: '所属行业' ,align: 'center'}
        ,{field:'tel', title: '用户电话' ,align: 'center'}
        ,{field:'liulan', title: '用户浏览数',  align: 'center'}
        ,{field:'fafang', title: '发放优惠券数',  align: 'center'}
        ,{field:'lingqu', title: '领取优惠券数',  align: 'center'}
        ]]
        ,page: true
      });

    });
  </script> 

<script>  //查询
$("#chaxun").click(function() {
  // $("#startTime")[0].value;
  // $("#endTime")[0].value;
  // $("#shopName")[0].value;
  // $("#firstIndustry")[0].value;
  // $("#secondIndustry")[0].value;
  // $("#selProvince")[0].value;
  // $("#selCity")[0].value;
  // $("#selArea")[0].value;
});


</script>
</body>
</html>